
#装饰器也是可以带参数
#重复执行被装饰函数time次
def reapeat(time:int):
    def docurator(func):
        def wrapper(*args,**kwargs):
            a=[]
            for i in range(time):
                r=func(*args,**kwargs)
                a.append(r)
            return a
        return wrapper
    return docurator

@reapeat(14)
def mul(a,*b):
    sum=0
    for x in range(1000):
        for i in b:
            sum+=a**i
    return sum

if __name__ == '__main__':
    total = mul(5, 2, 3, 4, 5, 6)
    print(f"total={total}")